package entity;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * AbstractBook entity provides the base persistence definition of the Book
 * entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractBook implements java.io.Serializable {

	// Fields

	private Integer bookId;
	private Type type;
	private String bookNumber;
	private String bookName;
	private String bookAuthor;
	private String bookPress;
	private String bookPicture;
	private Integer bookAmount;
	private Timestamp bookShelveTime;
	private Double bookPrice;
	private String bookRemark;
	private Integer bookSales;
	private Set recommendeds = new HashSet(0);
	private Set ordersbooks = new HashSet(0);
	private Set bargains = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractBook() {
	}

	/** minimal constructor */
	public AbstractBook(Type type, String bookName, String bookAuthor,
			String bookPress, String bookPicture, Integer bookAmount,
			Timestamp bookShelveTime, Double bookPrice, Integer bookSales) {
		this.type = type;
		this.bookName = bookName;
		this.bookAuthor = bookAuthor;
		this.bookPress = bookPress;
		this.bookPicture = bookPicture;
		this.bookAmount = bookAmount;
		this.bookShelveTime = bookShelveTime;
		this.bookPrice = bookPrice;
		this.bookSales = bookSales;
	}

	/** full constructor */
	public AbstractBook(Type type, String bookNumber, String bookName,
			String bookAuthor, String bookPress, String bookPicture,
			Integer bookAmount, Timestamp bookShelveTime, Double bookPrice,
			String bookRemark, Integer bookSales, Set recommendeds,
			Set ordersbooks, Set bargains) {
		this.type = type;
		this.bookNumber = bookNumber;
		this.bookName = bookName;
		this.bookAuthor = bookAuthor;
		this.bookPress = bookPress;
		this.bookPicture = bookPicture;
		this.bookAmount = bookAmount;
		this.bookShelveTime = bookShelveTime;
		this.bookPrice = bookPrice;
		this.bookRemark = bookRemark;
		this.bookSales = bookSales;
		this.recommendeds = recommendeds;
		this.ordersbooks = ordersbooks;
		this.bargains = bargains;
	}

	// Property accessors

	public Integer getBookId() {
		return this.bookId;
	}

	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}

	public Type getType() {
		return this.type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public String getBookNumber() {
		return this.bookNumber;
	}

	public void setBookNumber(String bookNumber) {
		this.bookNumber = bookNumber;
	}

	public String getBookName() {
		return this.bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getBookAuthor() {
		return this.bookAuthor;
	}

	public void setBookAuthor(String bookAuthor) {
		this.bookAuthor = bookAuthor;
	}

	public String getBookPress() {
		return this.bookPress;
	}

	public void setBookPress(String bookPress) {
		this.bookPress = bookPress;
	}

	public String getBookPicture() {
		return this.bookPicture;
	}

	public void setBookPicture(String bookPicture) {
		this.bookPicture = bookPicture;
	}

	public Integer getBookAmount() {
		return this.bookAmount;
	}

	public void setBookAmount(Integer bookAmount) {
		this.bookAmount = bookAmount;
	}

	public Timestamp getBookShelveTime() {
		return this.bookShelveTime;
	}

	public void setBookShelveTime(Timestamp bookShelveTime) {
		this.bookShelveTime = bookShelveTime;
	}

	public Double getBookPrice() {
		return this.bookPrice;
	}

	public void setBookPrice(Double bookPrice) {
		this.bookPrice = bookPrice;
	}

	public String getBookRemark() {
		return this.bookRemark;
	}

	public void setBookRemark(String bookRemark) {
		this.bookRemark = bookRemark;
	}

	public Integer getBookSales() {
		return this.bookSales;
	}

	public void setBookSales(Integer bookSales) {
		this.bookSales = bookSales;
	}

	public Set getRecommendeds() {
		return this.recommendeds;
	}

	public void setRecommendeds(Set recommendeds) {
		this.recommendeds = recommendeds;
	}

	public Set getOrdersbooks() {
		return this.ordersbooks;
	}

	public void setOrdersbooks(Set ordersbooks) {
		this.ordersbooks = ordersbooks;
	}

	public Set getBargains() {
		return this.bargains;
	}

	public void setBargains(Set bargains) {
		this.bargains = bargains;
	}

}